package com.java.mapper;

import com.java.pojo.Student_info;
import com.java.pojo.Teacher_info;
import org.apache.ibatis.annotations.Insert;

/**
 * description:描述
 * author:作者
 * time:2020/11/22 23:23
 */
public interface RegisterMapper {

    /**
     * 注册添加教师信息
     * @param teacher_info
     * @return
     */
    @Insert("INSERT INTO teacher_info VALUES(#{uuid},#{teacherWxid},#{teacherName},#{password},#{code})")
    int insertTeacherInfo(Teacher_info teacher_info);

    /**
     * 注册插入学生的信息
     * @param student_info
     * @return
     */
    @Insert("INSERT INTO student_info VALUES(#{uuid},#{studentWxid},#{studentName},#{sno},#{studentClass},#{image_path})")
    int insertStudentInfo(Student_info student_info);

}
